<?php
/*

class Plugin_Navigation extends Zend_Controller_Plugin_Abstract {
	
    public function preDispatch(Zend_Controller_Request_Abstract $request) {
    	if ($request->getModuleName()=='admin') {
    		$pages = array(
	        // admin
	        array(
	        	'label'		=> 'Admin',
	        	'title'		=> 'Admin Welcome Page',
	        	'module'	=> 'admin',
	        	'controller'=> 'index',
	        	'action'	=> 'index'
	        ),
	        
	       array(
	        	'label'		=> 'Stores',
	        	'title'		=> 'Stores',
	        	'module'	=> 'admin',
	        	'controller'=> 'store',
	        	'action'	=> 'index'	        	
	        ),
	        
	        array(
	        	'label'		=> 'Users',
	        	'title'		=> 'Users',
	        	'module'	=> 'admin',
	        	'controller'=> 'user',
	        	'action'	=> 'index'	        	       	
	        )       
	      
	      );
    	} else {
    		$pages = array(
	        array(
	            'label'		=> 'Home',
	            'title'		=> 'Homepage',
	            'module'	=> 'default',
				'controller'=> 'post',
	            'action'	=> 'index'
	        ),
	        
	        array(
	            'label'		=> 'Stores',
	            'title'		=> 'Stores',
	            'module'	=> 'default',
	            'controller'=> 'store',
	            'action'	=> 'index'
	        ),
	       
	        array(
	            'label'		=> 'About Us',
	            'title'		=> 'About Us',
	            'module'	=> 'default',
	            'controller'=> 'index',
	            'action'	=> 'aboutus'
	        )
	      );
    	}
    	
      $navigation = new Zend_Navigation($pages);
      Zend_Registry::set('Zend_Navigation', $navigation);
    }
    
} */